<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="button" value="change" @click="setM">
        <input type="text" v-model="message" @keyup.enter="getM">
        <h2 >
            {{ message }}
        </h2>
    </div>

    <script src="vue.js"></script>
    <script>
        var app=new Vue({
            el:"#app",
            data:{
                message:"河马菠萝赛东hhhhh"
            },
            methods:{
                setM:function(){
                    this.message="helo v-model!!"
                },
                getM:function(){
                    alert(this.message);
                }
            }
        })
    </script>
</body>
</html>